package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.PostReviewMapper;
import com.bigegg.employee.domain.PostReview;
import com.bigegg.employee.service.IPostReviewService;

/**
 * 招聘公告职位投递Service业务层处理
 * 
 * @author sun
 * @date 2022-08-16
 */
@Service
public class PostReviewServiceImpl implements IPostReviewService 
{
    @Autowired
    private PostReviewMapper postReviewMapper;

    /**
     * 查询招聘公告职位投递
     * 
     * @param id 招聘公告职位投递主键
     * @return 招聘公告职位投递
     */
    @Override
    public PostReview selectPostReviewById(Long id)
    {
        return postReviewMapper.selectPostReviewById(id);
    }

    /**
     * 查询招聘公告职位投递列表
     * 
     * @param postReview 招聘公告职位投递
     * @return 招聘公告职位投递
     */
    @Override
    public List<PostReview> selectPostReviewList(PostReview postReview)
    {
        return postReviewMapper.selectPostReviewList(postReview);
    }

    /**
     * 新增招聘公告职位投递
     * 
     * @param postReview 招聘公告职位投递
     * @return 结果
     */
    @Override
    public int insertPostReview(PostReview postReview)
    {
        return postReviewMapper.insertPostReview(postReview);
    }

    /**
     * 修改招聘公告职位投递
     * 
     * @param postReview 招聘公告职位投递
     * @return 结果
     */
    @Override
    public int updatePostReview(PostReview postReview)
    {
        return postReviewMapper.updatePostReview(postReview);
    }

    /**
     * 批量删除招聘公告职位投递
     * 
     * @param ids 需要删除的招聘公告职位投递主键
     * @return 结果
     */
    @Override
    public int deletePostReviewByIds(Long[] ids)
    {
        return postReviewMapper.deletePostReviewByIds(ids);
    }

    /**
     * 删除招聘公告职位投递信息
     * 
     * @param id 招聘公告职位投递主键
     * @return 结果
     */
    @Override
    public int deletePostReviewById(Long id)
    {
        return postReviewMapper.deletePostReviewById(id);
    }
}
